<div class="generalWrap">
	<h1 class="headingTitle"><?php echo $heading_title ?></h1>
	<p class="button"><?php echo anchor('phonebook/index/'.$this->uri->segment(4), 'Back', 'class="aButton"') ?></p>
	
	<div class="contentWrap">
		<?php echo form_open_multipart($form_action) ?>
		<table>
			<tr>
				<td width="150" valign="top"><?php echo form_label('Name:', 'name') ?></td>
				<td>
					<?php echo @form_input(array('name' => 'name', 'id' => 'name', 'size' => '30', 'value' => set_value('name', $form['name']))) ?>
					<?php echo form_error('name', '<span class="formError">', '</span>') ?>
				</td>
			</tr>
			<tr>
				<td valign="top"><?php echo form_label('Mobile 1:', 'mobile1') ?></td>
				<td>
					<?php echo @form_input(array('name' => 'mobile1', 'id' => 'mobile1', 'size' => '30', 'value' => set_value('mobile1', $form['mobile1']))) ?>
					<?php echo form_error('mobile1') ?>
				</td>
			</tr>
			<tr>
				<td valign="top"><?php echo form_label('Mobile 2:', 'mobile2') ?></td>
				<td>
					<?php echo @form_input(array('name' => 'mobile2', 'id' => 'mobile2', 'size' => '30', 'value' => set_value('mobile2', $form['mobile2']))) ?>
					<?php echo form_error('mobile2') ?>
				</td>
			</tr>
			<tr>
				<td valign="top"><?php echo form_label('Other Phone No:', 'otherPhone') ?></td>
				<td>
					<?php echo @form_input(array('name' => 'otherPhone', 'id' => 'otherPhone', 'size' => '30', 'value' => set_value('otherPhone', $form['other_phone']))) ?>
					<?php echo form_error('otherPhone') ?>
				</td>
			</tr>
			<tr>
				<td valign="top"><?php echo form_label('Address:', 'address') ?></td>
				<td>
					<?php echo @form_input(array('name' => 'address', 'id' => 'address', 'size' => '30', 'value' => set_value('address', $form['address']))) ?>
					<?php echo form_error('address') ?>
				</td>
			</tr>
			<tr>
				<td valign="top"><?php echo form_label('Email:', 'email') ?></td>
				<td>
					<?php echo @form_input(array('name' => 'email', 'id' => 'email', 'size' => '30', 'value' => set_value('email', $form['email']))) ?>
					<?php echo form_error('email') ?>
				</td>
			</tr>		
			<tr>
				<td valign="top"><?php echo form_label('Description:', 'description') ?></td>
				<td>
					<?php echo @form_textarea(array('name' => 'description', 'id' => 'description', 'rows' => '5', 'cols' => '50', 'value' => set_value('description', $form['desc']))) ?>
					<?php echo form_error('file') ?>
				</td>
			</tr>
			<tr>
				<td>&nbsp;</td>
				<td><?php echo form_submit('btnSave', 'Save') ?></td>
			</tr>
		</table>
		<?php echo form_close() ?>
	</div>
</div>